package com.chenfan.finance.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.chenfan.finance.model.TocAlipayOrigin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chenfan.finance.model.vo.TimeRange;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 支付宝流水原始表 Mapper 接口
 * </p>
 *
 * @author lizhejin
 * @since 2020-12-21
 */
@Repository
public interface TocAlipayOriginMapper extends BaseMapper<TocAlipayOrigin> {

    /**
     * 获取每月的支付宝流水单
     * @return
     */
    List<TocAlipayOrigin> getAllDataByMonth(@Param("timeRange") TimeRange timeRange);

    int insertList(@Param("subList") List<TocAlipayOrigin> subList);

    int updateCheckFlagByFinanceNo(@Param("financeNo") String financeNo,@Param("timeRange") TimeRange timeRange);
}
